package com.briup.system.service.impl;

import com.briup.system.pojo.SysRole;
import com.briup.system.mapper.SysRoleMapper;
import com.briup.system.service.ISysRoleService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author briup
 * @since 2022-11-15
 */
@Service
public class SysRoleServiceImpl extends ServiceImpl<SysRoleMapper, SysRole> implements ISysRoleService {

    public String getNameById(Long id){
        SysRole role = getById(id);
        return role.getRoleName();
    }
}
